<?php /* Smarty version Smarty-3.1.14, created on 2017-08-22 16:20:30
         compiled from "E:\phpStudy\WWW\zyshop\admin\templates\order_edit.html" */ ?>
<?php /*%%SmartyHeaderCode:27343599544fb1f4c39-50147225%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'db4488f352fd351278e9456efcdbed617eb9aaf0' => 
    array (
      0 => 'E:\\phpStudy\\WWW\\zyshop\\admin\\templates\\order_edit.html',
      1 => 1503389993,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '27343599544fb1f4c39-50147225',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.14',
  'unifunc' => 'content_599544fb30f3a9_12354326',
  'variables' => 
  array (
    'edit' => 0,
    'goods_list' => 0,
    'goods' => 0,
    'order_log' => 0,
    'list' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_599544fb30f3a9_12354326')) {function content_599544fb30f3a9_12354326($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\phpStudy\\WWW\\zyshop\\includes\\libs\\plugins\\modifier.date_format.php';
?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<style>
input {	width: 80px;}
textarea {	width: 350px;	height:80px;}
tr {height: 48px; }
th {background-color:#f3f3f3; font-size:18px;}
td {font-size:14px;}
</style>
<body>
  <div class="fixed-bar">
    <div class="item-title">
      <h3>订单信息</h3>
      <div style="background:rgba(251,112,45,1);width:125px;height:40px;float:right;text-align:center;border-radius:5px;">
        <a href="order.php?act=list">
          <h5 style="padding:10px;color:#fff;">订单列表</h5>
        </a>
      </div>
    </div> 
  </div>
  <div class="fixed_bottom">
	  <div class="list-div" style="margin-bottom: 5px">
	    <table width="100%" cellpadding="3" cellspacing="1">
  		  <tr>
    		  <th colspan="4">基本设置</th>
  		  </tr>
  		<tr>
    	   <td><div align="right"><strong>订单号：</strong></div></td>
    	   <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['order_sn'];?>
</td>
    	   <td><div align="right"><strong>订单状态：</strong></div></td>
    	   <td>
            <?php if ($_smarty_tpl->tpl_vars['edit']->value['order_status']==0){?>未确认
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==1){?>已确认
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==2){?><font color="#FF0000">取消</font>
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==3){?><font color="#FF0000">无效</font>
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==4){?><font color="#FF0000">退货</font>
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==5){?>已分单
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==6){?>部分已分单
            <?php }?>&nbsp;&nbsp;
            <?php if ($_smarty_tpl->tpl_vars['edit']->value['pay_status']==0){?>未付款
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['pay_status']==1){?>付款中
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['pay_status']==2){?>已付款
            <?php }?>&nbsp;&nbsp;
            <?php if ($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==0){?>未发货
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==1){?>已发货
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==2){?>收货确认
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==3){?>配货中
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==4){?>已发货(部分商品)
            <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['shipping_status']==5){?>发货中
            <?php }?>
          </td>
  		  </tr>
  		  <tr>
    	    <td><div align="right"><strong>购货人：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['user_name'];?>
</td>
    	    <td><div align="right"><strong>下单时间：</strong></div></td>
    	    <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['edit']->value['add_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
  		  </tr>
  		  <tr>
    	    <td width="18%"><div align="right"><strong>支付方式：</strong></div></td>
   		    <td width="34%"><?php echo $_smarty_tpl->tpl_vars['edit']->value['pay_name'];?>
</td>
    	    <td><div align="right"><strong>付款时间：</strong></div></td>
    	    <td>
           <?php if ($_smarty_tpl->tpl_vars['edit']->value['pay_time']==''){?>未付款<?php }else{ ?>
           <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['edit']->value['pay_time'],'%Y-%m-%d %H:%M:%I');?>

           <?php }?>
          </td>
  		  </tr>
  		  <tr>
    	    <td><div align="right"><strong>配送方式：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['shipping_name'];?>
</td>
          <td><div align="right"><strong>发货时间：</strong></div></td>
          <td>
           <?php if ($_smarty_tpl->tpl_vars['edit']->value['shipping_time']==''){?>未发货<?php }else{ ?>
           <?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['edit']->value['shipping_time'],'%Y-%m-%d %H:%M:%I');?>

           <?php }?>
          </td>
  		  </tr>
  		  <tr>
          <td><div align="right"><strong>发货单号：</strong></div></td>
          <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['invoice_no'];?>
</td>
    	    <td><div align="right"><strong>订单来源：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['referer'];?>
</td>
  		  </tr>
  		  <tr>
    	    <th colspan="4">收货人信息</th>
    	  </tr>
  		  <tr>
    	    <td><div align="right"><strong>收货人：</strong></div></td>
    	    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['edit']->value['consignee'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	    <td><div align="right"><strong>电子邮件：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['email'];?>
</td>
  		  </tr>
  		  <tr>
    	    <td><div align="right"><strong>地址：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['region'];?>
<?php echo htmlspecialchars($_smarty_tpl->tpl_vars['edit']->value['address'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	    <td><div align="right"><strong>邮编：</strong></div></td>
    	    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['edit']->value['zipcode'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		  </tr>
  		  <tr>
    	    <td><div align="right"><strong>电话：</strong></div></td>
    	    <td><?php echo $_smarty_tpl->tpl_vars['edit']->value['tel'];?>
</td>
    	    <td><div align="right"><strong>手机：</strong></div></td>
    	    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['edit']->value['mobile'], ENT_QUOTES, 'UTF-8', true);?>
</td>
  		  </tr>
  		  <tr>
    	    <td><div align="right"><strong>标志性建筑：</strong></div></td>
    	    <td><?php echo htmlspecialchars($_smarty_tpl->tpl_vars['edit']->value['sign_building'], ENT_QUOTES, 'UTF-8', true);?>
</td>
    	    <td><div align="right"><strong>最佳送货时间：</strong></div></td>
    	    <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['edit']->value['best_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
  		  </tr>
	    </table>
    </div>
    <div class="list-div" style="margin-bottom: 5px">
      <table width="100%" cellpadding="3" cellspacing="1">
        <tr>
          <th colspan="8" scope="col">商品信息</th>
        </tr>
        <tr>
          <td><div align="center"><strong>商品名称</strong></div></td>
          <td><div align="center"><strong>货号</strong></div></td>
          <td><div align="center"><strong>价格</strong></div></td>
          <td><div align="center"><strong>数量</strong></div></td>
          <td><div align="center"><strong>属性</strong></div></td>
          <td><div align="center"><strong>库存</strong></div></td>
          <td><div align="center"><strong>小计</strong></div></td>
        </tr>
 	      <?php  $_smarty_tpl->tpl_vars['goods'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['goods']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['goods_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['goods']->key => $_smarty_tpl->tpl_vars['goods']->value){
$_smarty_tpl->tpl_vars['goods']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['goods']->key;
?>
        <tr>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_name'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_sn'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_price'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_number'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_attr'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['number'];?>
</div></td>
          <td><div style="text-align:center"><?php echo $_smarty_tpl->tpl_vars['goods']->value['goods_price'];?>
</div></td>
        </tr>
        <?php } ?>
        <tr>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td> 
          <td>合计：</td> 
          <td>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['goods_amount'];?>
</td>
        </tr> 
      </table>
      <div class="list-div" style="margin-bottom: 5px">
        <table width="100%" cellpadding="3" cellspacing="1">
          <tr>
            <th colspan="9" scope="col">费用信息</th>
          </tr>
          <tr>
      <td style="text-align:right" width="100%">
      <div >
      商品总金额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['goods_amount'];?>
元</strong>
      - 折扣:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['discount'];?>
元</strong>  
      + 发票税额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['tax'];?>
元</strong>
      + 配送费用:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['shipping_fee'];?>
元</strong>
      + 保价费用:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['insure_fee'];?>
元</strong>
      + 支付费用:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['pay_fee'];?>
元</strong>
      + 包装费用:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['pack_fee'];?>
元</strong>
      + 贺卡费用:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['card_fee'];?>
元</strong>
      </div>
      </td>
      </tr>
       <tr>
      <td style="text-align:right" width="100%">
          =订单总金额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['total_fee'];?>
元</strong>
      </td>
    </tr>
    <tr>
      <td>
        <div align="right">
          -已付金额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['money_paid'];?>
元</strong>
          -使用余额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['surplus'];?>
元</strong>
          -使用积分:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['integral_money'];?>
元</strong>
          -使用红包:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['bonus'];?>
元</strong>
        </div>
      </td>
      </tr>
      <tr>
      <td>
       <div align="right">
        =应付款金额:<strong>￥<?php echo $_smarty_tpl->tpl_vars['edit']->value['order_amount'];?>
元</strong>
        </div>
      </td>
    </tr>
</table>
</div>
<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th colspan="8" scope="col">操作信息</th>
    </tr>
    <tr>
      <td colspan="3"><div align="right" >操作备注：  &nbsp;&nbsp;&nbsp;&nbsp; </div></td>
      <td colspan="5">
       <textarea name="action_note" cols="192" rows="3"></textarea>
      </td>
    </tr>
    <form method="post" action="order.php" enctype="multipart/form-data" id="aspnetForm" name="form1">
    <input type="hidden" name="act" value="upd">
    <input type="hidden" name="order_id" value='<?php echo $_smarty_tpl->tpl_vars['edit']->value['order_id'];?>
'>
      <tr>
      <td colspan="3"><div align="right" >当前执行操作：  &nbsp;&nbsp;&nbsp;&nbsp; </div></td>
      <td>
        <?php if ($_smarty_tpl->tpl_vars['edit']->value['order_status']==0){?>
        <input type="submit" name='confirm' value="确认">
        <input type="submit" name='payment' value="付款">
        <input type="submit" name='cancel' value="取消">
        <input type="submit" name='invalid' value="无效">
        <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['order_amount'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==1&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==0){?>
        <input type="submit" name='payment' value="付款">
        <input type="submit" name='cancel' value="取消">
        <input type="submit" name='invalid' value="无效">
        <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['order_amount'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==2){?>
        <input type="submit" name='confirm' value="确认">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==3){?>
        <input type="submit" name='confirm' value="确认">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==4){?>
        <input type="submit" name='confirm' value="确认">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==1&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==2){?>
        <input type="submit" name='unpaid' value="设为未付款">
        <input type="submit" name='invoice' value="生成发货单">
        <input type="submit" name='cancel' value="取消">
        <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['money_paid'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==5&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==2&&$_smarty_tpl->tpl_vars['edit']->value['shipping_status']==0){?>
        <input type="submit" name='unpaid' value="设为未付款">
        <input type="submit" name='invoice' value="生成发货单">
        <input type="submit" name='cancel' value="取消">
         <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['money_paid'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==5&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==2&&$_smarty_tpl->tpl_vars['edit']->value['shipping_status']==1){?>
        <input type="submit" name='notshipped' value="未发货">
        <input type="submit" name='receivedgoods' value="已收货">
        <input type="submit" name='returngoods' value="退货"> 
        <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['money_paid'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==5&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==2&&$_smarty_tpl->tpl_vars['edit']->value['shipping_status']==2){?>
        <input type="submit" name='notshipped' value="未发货">
        <input type="submit" name='returngoods' value="退货"> 
        <input type="hidden" name='order_amount' value="<?php echo $_smarty_tpl->tpl_vars['edit']->value['money_paid'];?>
">
        <?php }elseif($_smarty_tpl->tpl_vars['edit']->value['order_status']==5&&$_smarty_tpl->tpl_vars['edit']->value['pay_status']==2&&$_smarty_tpl->tpl_vars['edit']->value['shipping_status']==5){?>
        <input type="submit" name='delivery' value="去发货">
        <?php }?>
      </td>
    </tr>
    </from>
    
</table>
</div>
  <table align="center;" class="table tb-type2">
  <thead>
        <tr>
          <th><a>操作者</a></th>
          <th><a>操作时间</a></th>
          <th><a>订单状态</a></th>
          <th><a>付款状态</a></th>
          <th><a>发货状态</a></th>
        </tr>
      <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['order_log']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['list']->key;
?>
        <tr>
        <td align="center"><?php echo $_smarty_tpl->tpl_vars['list']->value['action_user'];?>
</td>
        <td align="center"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['list']->value['log_time'],'%Y-%m-%d %H:%M:%I');?>
</td>
        <td align="center">
          <?php if ($_smarty_tpl->tpl_vars['list']->value['order_status']==0){?>未确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==1){?>已确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==2){?><font color="#FF0000">取消</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==3){?><font color="#FF0000">无效</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==4){?><font color="#FF0000">退货</font>
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==5){?>已分单
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['order_status']==6){?>部分已分单
        <?php }?></td>
        <td align="center"><?php if ($_smarty_tpl->tpl_vars['list']->value['pay_status']==0){?>未付款
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['pay_status']==1){?>付款中
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['pay_status']==2){?>已付款
        <?php }?></td>
        <td align="center"><?php if ($_smarty_tpl->tpl_vars['list']->value['shipping_status']==0){?>未发货
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==1){?>已发货
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==2){?>收货确认
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==3){?>配货中
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==4){?>已发货(部分商品)
          <?php }elseif($_smarty_tpl->tpl_vars['list']->value['shipping_status']==5){?>发货中
        <?php }?></td>
        </tr>
    <?php } ?>
      </thead>

</table>
</div><?php }} ?>